const path = require('path');

function resolve(dir) {
    return path.join(__dirname, dir);
}
module.exports = {
    lintOnSave: true,
    chainWebpack: (config) => {
        config.resolve.alias
            .set('@', resolve('src'))
            .set('css',resolve('src/assets/css'))
            .set('img',resolve('src/assets/img'))
            .set('font',resolve('src/assets/font'))
            .set('components',resolve('src/components'))
            .set('views',resolve('src/views'))
            .set('network',resolve('src/network'))
            .set('store',resolve('src/store'))
            .set('mixin',resolve('src/mixin'))
            .set('common',resolve('src/common'))
    }
}
